package org.darkforest.model;

import org.darkforest.common.util.Page;

import java.math.BigDecimal;

public class PBoothGoods extends Page<PBoothGoods> {
    private Integer boothGoodsId;

    private Integer storeId;

    private Integer goodsId;

    private Integer gcId;

    private Byte boothState;

    private Integer recommondType; //推荐类型

    private BigDecimal goodsPrice;
    private String goodsName;
    private String goodsImage;
    private Integer goodsSort;

    private String storeName;


    public PBoothGoods(){};

    public PBoothGoods(Integer storeId,boolean pageable){
        this.storeId = storeId;
        super.setPageSwitch(pageable);
    }

    public String getStoreName() {
        return storeName;
    }

    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    public Integer getGoodsSort() {
        return goodsSort;
    }

    public void setGoodsSort(Integer goodsSort) {
        this.goodsSort = goodsSort;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsImage() {
        return goodsImage;
    }

    public void setGoodsImage(String goodsImage) {
        this.goodsImage = goodsImage;
    }

    public Integer getRecommondType() {
        return recommondType;
    }

    public void setRecommondType(Integer recommondType) {
        this.recommondType = recommondType;
    }

    public Integer getBoothGoodsId() {
        return boothGoodsId;
    }

    public void setBoothGoodsId(Integer boothGoodsId) {
        this.boothGoodsId = boothGoodsId;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getGcId() {
        return gcId;
    }

    public void setGcId(Integer gcId) {
        this.gcId = gcId;
    }

    public Byte getBoothState() {
        return boothState;
    }

    public void setBoothState(Byte boothState) {
        this.boothState = boothState;
    }


    public String getBoothStateDes(){
        switch (this.boothState){
            case 0 : return  "待审核";
            case 1 : return  "正常";
            case 2 : return  "下线";
            default: return "未知状态";
        }
    }


    public String getRecommondTypeStr(){
        switch (recommondType){
            case 1:return "新品上市";
            case 2:return "精品推荐";
            case 3:return "本周热销";
            default : return "unknow";
        }



    }
}